package com.b2b2c.store.sharding.logic;


import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;


import com.b2b2c.store.sharding.entity.DbGoods;
import com.b2b2c.store.sharding.mapper.DbGoodsMapper;
import com.b2b2c.store.sharding.service.IGoodsService;

public class GoodsLogic extends AbstractShardingLogic<DbGoods> implements IGoodsService<DbGoods> {
	

	private DbGoodsMapper mapper;
	
	public void setMapper(DbGoodsMapper mapper) {
		
		this.mapper = mapper;
	}
	
	public GoodsLogic(HttpServletRequest req) {
		super(req);
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * @param args
	 */
	public GoodsLogic(Map<String, String> args) {
		super(args);
	}
	
	/**
	  *  添加商品验证
	 */
	@Override
	public Map<String, Map<String, String>> getValidateRule() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<DbGoods> getDataList(Map<String, String> requestMap) {
		
		return this.mapper.getDataList(requestMap);
	}

	@Override
	protected int count(Map<String, String> param) {
		// TODO Auto-generated method stub
		return this.mapper.count(param);
		
	}
	
	
}
